/**
* @ingroup Pager
*/
-use MediaWiki\Block\BlockRestriction;
use MediaWiki\Block\Restriction\Restriction;
use MediaWiki\Block\Restriction\PageRestriction;
use MediaWiki\Block\Restriction\NamespaceRestriction;
case 'ipb_params':
$properties = [];
- if ( $this->getConfig()->get( 'EnablePartialBlocks' ) ) {
- if ( $row->ipb_sitewide ) {
- $properties[] = htmlspecialchars( $msg['blocklist-editing-sitewide'] );
- }
+ if ( $this->getConfig()->get( 'EnablePartialBlocks' ) && $row->ipb_sitewide ) {
+ $properties[] = htmlspecialchars( $msg['blocklist-editing-sitewide'] );
}
if ( !$row->ipb_sitewide && $this->restrictions ) {
if ( $partialBlocks ) {
// Mutations to the $row object are not persisted. The restrictions will
// need be stored in a separate store.
- $this->restrictions = BlockRestriction::loadByBlockId( $partialBlocks );
+ $blockRestrictionStore = MediaWikiServices::getInstance()->getBlockRestrictionStore();
+ $this->restrictions = $blockRestrictionStore->loadByBlockId( $partialBlocks );
}
$lb->execute();